package com.zttek.videoShareProject.modules.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author CBY
 * @since 2018-07-03
 */
public class Video extends Model<Video> {

    private static final long serialVersionUID = 1L;

	@TableId(value="video_id", type= IdType.AUTO)
	private Long videoId;
	private String title;
	private String intro;
	@TableField("image_url")
	private String imageUrl;
    /**
     * 播放量
     */
	private Integer views;
	@TableField("video_url")
	private String videoUrl;
	@TableField("video_type")
	private String videoType;
    /**
     * 外键
     */
	@TableField("user_id")
	private Long userId;
    /**
     * 上传时间
     */
	@TableField("upload_date")
	private Date uploadDate;
    /**
     * 视频时长
     */
	@TableField("total_time")
	private String totalTime;
    /**
     * 00:上传未审核，01：上传已审核，10：被举报
     */
	private Integer status;


	public Long getVideoId() {
		return videoId;
	}

	public void setVideoId(Long videoId) {
		this.videoId = videoId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getIntro() {
		return intro;
	}

	public void setIntro(String intro) {
		this.intro = intro;
	}

	public String getImageUrl() {
		return imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	public Integer getViews() {
		return views;
	}

	public void setViews(Integer views) {
		this.views = views;
	}

	public String getVideoUrl() {
		return videoUrl;
	}

	public void setVideoUrl(String videoUrl) {
		this.videoUrl = videoUrl;
	}

	public String getVideoType() {
		return videoType;
	}

	public void setVideoType(String videoType) {
		this.videoType = videoType;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Date getUploadDate() {
		return uploadDate;
	}

	public void setUploadDate(Date uploadDate) {
		this.uploadDate = uploadDate;
	}

	public String getTotalTime() {
		return totalTime;
	}

	public void setTotalTime(String totalTime) {
		this.totalTime = totalTime;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Override
	protected Serializable pkVal() {
		return this.videoId;
	}

	@Override
	public String toString() {
		return "Video{" +
			"videoId=" + videoId +
			", title=" + title +
			", intro=" + intro +
			", imageUrl=" + imageUrl +
			", views=" + views +
			", videoUrl=" + videoUrl +
			", videoType=" + videoType +
			", userId=" + userId +
			", uploadDate=" + uploadDate +
			", totalTime=" + totalTime +
			", status=" + status +
			"}";
	}
}
